<!doctype html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link href="../css/mui.css" rel="stylesheet" />
		<link href="../css/list.css" rel="stylesheet" />
		<script src="../js/mui.min.js"></script>
		 <script src="../js/app.js"></script>
		 <link href="..css/style.css" rel="stylesheet" />
		 <link href="../css/icons-extra.css" rel="stylesheet"/>
<!--<link rel="stylesheet" href="css/message.css" type="text/css" />-->
		 		<script src="../js/jquery-3.3.1.js"></script>
		 		<style type="text/css">
		 			.mui-content{
		 				margin-bottom: 40px;  
		 			}
		 			/*body {font-family: sans-serif;}*/
		 			#show_messagea li{
		 				background: #fff;
		 				padding:5px 5px 0 5px;
		 			}
		 			#show_messagea{
		 				background: #FAFAFA;
		 			/*#show_messagea img{
		 				/*background: #FAFAFA;*/
		 				/*padding:5px 5px 0 5px;*/
		 				
		 			}
		 			.mui-media-body{
		 				
		 				/*background: #F3F3F3;*/
		 				/*padding:5px 5px 0 5px;*/
		 				border-radius:10px;
		 				font-size: 16px;
		 				line-height:120%;
		 				margin : 0px 2px 2px 5px;
		 			}
		 			.p1{
		 				color: #000000;
		 				font-size: 20px;
		 				/*letter-spacing:0.1em;*/
		 				/*text-indent:2em;*/
		 				/*padding:0 0.1em;*/
		 				padding: 3px;
		 			}
		 			.p2{
		 				/*margin : 0px 2px 10px 55px;*/
		 				/*background: #EFEFF4;*/
		 				padding:0 0px 0 62px;
		 				border-radius:5px;
		 			}
		 			a{ text-decoration:none;
    color:#222222;}
		 		</style>
</head>
<header class="mui-bar mui-bar-nav">
    <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
    <h1 class="mui-title">新闻动态</h1>
</header>
<!--<nav class="mui-bar mui-bar-tab" id="xq3" style="display:none;padding-bottom:10px; height: 30px;">
    <div class="mui-input-row" style=" padding-bottom:10px;">
            <label><input style="padding: 2px;font-size: 20px;"  type="submit" onclick="add();"></label>
            <input id="ckq" style="padding:1px;font-size: 20px;" type="text"  class="mui-input-speech mui-input-clear" placeholder="留言">
        
    </div>
</nav>-->
    <div class="mui-content">
      <div id="neirong" class="mui-content-padded">
      </div>
      <!--<div>查看数据详单>>>></div>-->
    </div>

<script src="../js/mui.min.js"></script>
<script type="text/javascript">
	//定义变量——————————————————————————————————
//	alert(localStorage.getItem("zhongchou"));
var chatkey = localStorage.getItem("item"); //当前信息大库
//ljson = localStorage.getItem(chatkey); //好友信息json字符串
result= eval('(' + chatkey + ')');//转换成json对象
//alert(JSON.stringify(result));
var val="";

zhongchouid=localStorage.getItem("item_id");
//alert(zhongchouid);
//function  strfenge(String,fuhao){
//var arrpic=String.split(',');
//	for(var p=0;p<arrpic.length;p++){
//		alert(arrpic[p]);
//	}};
for (var i=0;i<result.length;i++){
	if(result[i].id==zhongchouid){
//		va=strfenge(result[i].pic);
//		alert(va);
	arrpic=result[i].pic.split(',');
//	var arrpic=[];
	for(var p=0;p<arrpic.length;p++){
		alert(arrpic[p]);
	}
//		strfenge(result[i].pic,',');
//		alert(strfenge(result[i].pic,','));
	}
//		if(result[i].pic!=null){
//			pd=result[i].pic.indexOf(",")==-1;//判断字符串里是否含有逗号如果不含有
//			if(pd!=-1){var rpic=result[i].pic.split(","); classimg="imgx";
//			alert(rpic[i]);
//			var pic="";
//			for(var ib=0;ib<rpic.length;ib++)
//			{  
//			pic+='<div class=" slide-item" style="width:auto;height:auto"><span class="imgleft" style="height:150px"><img style="height:100%" src="'+result[i].imgsrc+rpic[ib]+'" alt=""/><span></div>';
// }
//			}//如果有逗号即可分割字符串
//}
//resources='<option value="">请选择入股类别</option><option value="资源入股">资源入股</option><option value="资金入股">资金入股</option><option value="技术入股">技术入股</option>';
//val='<li><div class="list-head"><img src="'+result[i].headimg+'"/>【'+result[i].zhongchouclass_name+'】<p>《'+result[i].title+'》</p><p>发布人：'+result[i].uname+'发布时间：'+result[i].addtime+'</p><li><p>筹备进度:'+(result[i].sharenow/result[i].money).toFixed(2)+'%</p><div class="tiao-a" style="margin-top:-12px;width:100%;height:17px;background:#E3E3E3"><div class="tiao-a"style=" z-index:2;width:50%;height:15px;"></div></div></li><li id="xq2"><p class="list-head">'+result[i].content+'</p></div><div class="slide-box">'+pic+'</div><div class="btn" onclick="hang()" style="float:left;font-size:20px;background:#1E90FF;width:100%;padding:5px;font-size:20px;text-align:center; color:#FCFCFC" href="#"><span>进入项目详情页 ☰</span></div><div class="list-foot"><a href="javascript:;"><p style="width: 33%;float: left" >评论：'+result[i].comment+' </p></a><a href="javascript:;"><p style="width: 33%;float: left;"onclick="">赞：'+result[i].zan+'</p></a><a href="javascript:;"><p style="width: 33%;float: left;"onclick="">收藏：'+result[i].create+'</p></a></div></div><div class="list-head" style="width:100%;background:#E3E3E3;height: 5px;"></div><div class="list-head" id="xq4" style="display:block">最新评论:<div><nav class="mui-bar mui-bar-tab"  style="height: 25px;"><div class="mui-input-row"><label><input style="padding: 2px;font-size: 20px;"  type="submit" onclick="add();"></label><input  id="ckq" style="padding:4px;font-size: 20px;" type="text"  class="mui-input-speech mui-input-clear" placeholder="留言"></div></nav></li></li>';
//	
////	val=arrjson[i].timg;	
	}
////	val+=arrjson[i].id;
//}
//alert(val);
//<div class="list-head" ><div class="select"><select>请选择'+resources+'</select></div></div><div style="">A:资金;<br>B:资源(支持:器材,版权,场景,产品,吃住,车辆等);<br>C:技术:(支持:技术人才,艺人,宣传,发行,特效,制作等);</div>
//document.getElementById('neirong').innerHTML=val;
//localStorage.removeItem(ckey);//清空数据
//false;

    mui.plusReady(function() {
//     loopFlag = false;
      var images = [].slice.call(document.querySelectorAll('.slide-item img'));
      var urls = [];
      images.forEach(function(item) {
        urls.push(item.src);
      });
      mui('.slide-item').on('tap', 'img', function() {
        var index = images.indexOf(this);
        plus.nativeUI.previewImage(urls, {
          current: index,
//        loop: loopFlag,
          indicator: 'number'
        });
      });
    });
function hang(){
		//数据库存储当前点击id值
//localStorage.setItem("zhongchouid",obj.id);
//alert(localStorage.getItem("zhongchouid"))
mui.openWindow('project.html');
	}
  </script>